.class Lcom/estrongs/android/taskmanager/b/f;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field private final synthetic a:Lcom/estrongs/android/taskmanager/TaskManager;

.field private final synthetic b:Lcom/estrongs/android/taskmanager/b/c;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/TaskManager;Lcom/estrongs/android/taskmanager/b/c;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iput-object p2, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 8

    const/4 v7, 0x0

    const/4 v0, 0x1

    const/4 v1, 0x0

    packed-switch p2, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->b()V

    goto :goto_0

    :pswitch_1
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v1

    const-string v2, "com.estrongs.android.taskmanager"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/widget/TmWidgetProvider;->d(Landroid/content/Context;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f07002a

    invoke-static {v1, v2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    instance-of v0, v0, Lcom/estrongs/android/taskmanager/b/a;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Landroid/content/Context;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->e()V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Landroid/content/Context;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->e()V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/b/c;->h()Landroid/content/Intent;

    move-result-object v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    const v2, 0x7f070004

    invoke-static {v0, v2, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :cond_4
    :try_start_0
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v2, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :pswitch_3
    const-string v0, "package"

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v2}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2, v7}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.DELETE"

    invoke-direct {v2, v3, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    :try_start_1
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/taskmanager/TaskManager;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->d()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto/16 :goto_0

    :catch_1
    move-exception v0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :pswitch_4
    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v2}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v4

    invoke-static {}, Lcom/estrongs/android/taskmanager/cy;->a()I

    move-result v5

    const/16 v2, 0x9

    if-lt v5, v2, :cond_5

    move v2, v0

    :goto_1
    const/16 v6, 0x8

    if-lt v5, v6, :cond_6

    :goto_2
    if-eqz v2, :cond_7

    const-string v0, "android.settings.APPLICATION_DETAILS_SETTINGS"

    invoke-virtual {v3, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "package"

    invoke-static {v0, v4, v7}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    :goto_3
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0, v3}, Lcom/estrongs/android/taskmanager/TaskManager;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    :cond_5
    move v2, v1

    goto :goto_1

    :cond_6
    move v0, v1

    goto :goto_2

    :cond_7
    const-string v1, "com.android.settings"

    const-string v2, "com.android.settings.InstalledAppDetails"

    invoke-virtual {v3, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    if-nez v0, :cond_8

    const-string v0, "com.android.settings.ApplicationPkgName"

    invoke-virtual {v3, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_3

    :cond_8
    const-string v0, "pkg"

    invoke-virtual {v3, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_3

    :pswitch_5
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->b(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_9

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v1, v0}, Lcom/estrongs/android/taskmanager/ht;->b(Landroid/content/Context;Ljava/lang/String;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->e()V

    goto/16 :goto_0

    :cond_9
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v2}, Lcom/estrongs/android/taskmanager/b/c;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_6
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/b/c;->f()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/f;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/f;->b:Lcom/estrongs/android/taskmanager/b/c;

    invoke-virtual {v2}, Lcom/estrongs/android/taskmanager/b/c;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Lcom/estrongs/android/taskmanager/TaskManager;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_5
        :pswitch_2
        :pswitch_1
        :pswitch_3
        :pswitch_4
        :pswitch_0
        :pswitch_6
    .end packed-switch
.end method
